<script type="text/javascript" src="js/categories.js"></script>
<style type="text/css">
    form input{
        background-color: #DDDDDD;
        padding: 5px;
        line-height: 1;
        border: 0;
        border-radius: 1px;
    }
    .imageButtonSmall{
        background: url("images/save-s.png") no-repeat scroll 0 0 transparent;
        color: #000000;
        border: none;
        padding-left: 35px;
        padding-right: 25px;
        padding-top: 17px;
        padding-bottom: 8px;
    }

    .imageButtonBig{
        background: url("images/save-b.png") no-repeat scroll 0 0 transparent;
        color: #000000;
        border: none;
        padding-left: 15px;
        padding-right: 25px;
        padding-top: 37px;
        padding-bottom: 17px;
        width: 78px;
    }

    #add_new{
        background: url("images/btnAdd.png") no-repeat scroll 0 0 transparent ;
        color: #000000 ;
        height: 30px ;
        padding-left: 15px ;
        padding-top: 20px ;
        padding-bottom: 5px;
        width: 135px;
    }

    .action{
        float: right;
        width: 150px;
        padding-right: 100px;
    }
</style>
<div class="container">
		<h1>Edit Item</h1>
<?php     

echo form_open(current_url()); ?>
		<div id = "top_reserve">
        <div  id = "content-right" class="action">
        <!-- end opt_box -->
        <div>
            <p>
        <input type="image" id="button_submit" name="button_submit" value="Lưu" class="imageButtonSmall"/>
		<?php 
		$data = array(
			'name' => 'button_cancel',
			'id' => 'button_cancel',
			'value' => 'true',
			'type' => 'button',
			'content' => 'Hủy',
			'onclick'=>"history.go(-1);return false;"
		);
                
		echo form_button($data);
		?>
            </p></div>
			</div> <!-- end add_new -->
		</div> <!-- end top_reserve -->	
<div style="width:500px;margin:0 auto;">
<?php echo $custom_error; ?>
<?php echo form_hidden('Ca_ID',$result->Ca_ID) ?>
<span style=" clear:both; float:left; padding:5px;">
                <p><label style="float: left; text-align: right; margin-right: 5px; width: 135px;" for="Name">Name<span class="required"><font color="red">*</font></span></label>                                
                <input id="Name" type="text" name="Name" value="<?php echo $result->Name ?>"  />
                <input id="Vip" type="checkbox" name="Vip" value="<?php echo $result->Vip; ?>" <?php echo $result->Vip == 1 ? 'checked="checked"' : ''; ?> />
                <label for="Vip">VIP</label>
                <?php echo form_error('Name','<div>','</div>'); ?>
                </p></span>
</div>
<?php echo form_close(); ?>
	</div>

